import request from '@/utils/request'

// 腾讯广告授权账号广告主广告列表表列表
export function apiTencentAdvertisingUserAdListLists(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/lists', params })
}

// 添加腾讯广告授权账号广告主广告列表表
export function apiTencentAdvertisingUserAdListAdd(params: any) {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/add', params })
}

// 编辑腾讯广告授权账号广告主广告列表表
export function apiTencentAdvertisingUserAdListEdit(params: any) {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/edit', params })
}

// 删除腾讯广告授权账号广告主广告列表表
export function apiTencentAdvertisingUserAdListDelete(params: any) {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/delete', params })
}

// 腾讯广告授权账号广告主广告列表表详情
export function apiTencentAdvertisingUserAdListDetail(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/detail', params })
}

// 添加腾讯广告授权账号广告主广告投放
export function apiTencentAdvertisingUserAdListPlacement(params: any) {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/placement', params }, { isReturnDefaultResponse: true })
}

// 重新投放
export function apiTencentAdvertisingUserAdListPlacementRefresh(params: any) {
    return request.post({
        url: '/ads.tencent_advertising_user_ad_list/placement_refresh',
        params
    },{ isReturnDefaultResponse: true })
}

// 获取微信号列表
export function getWechatList(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/detail', params })
}

// 24小时投放
export function apiTencentAdvertisingUserAdList24HourPlacement(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/hour_placement_refresh', params }, { isReturnDefaultResponse: true })
}

// 投放记录
export function apiTencentAdvertisingUserAdListLogLists(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list_log/lists', params })
}

// 投放记录
export function apiTencentAdvertisingUserAdListBindWechatLists(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list_log/bind_wechat_list', params })
}

// 获取黑名单列表
export function apiTencentAdvertisingBlackListLists(params: any) {
    return request.get({ url: '/ads.tencent_advertising_black_list/lists', params })
}

// 添加黑名单
export function apiTencentAdvertisingBlackListAdd(params: any) {
    return request.post({ url: '/ads.tencent_advertising_black_list/add', params })
}

// 删除黑名单
export function apiTencentAdvertisingBlackListDelete(params: any) {
    return request.post({ url: '/ads.tencent_advertising_black_list/delete', params })
}